package com.igd.business.service;

import java.sql.SQLException;
import java.util.List;

import com.igd.exceptions.IgdException;
import com.igd.pojo.vo.PageList;
import com.igd.security.Resources;

 /**
 * @version  1.0
 *
 * @author   QIAOYU
 *
 * @date     2013-7-5
 *
 * @description	 资源信息服务类接口
 */

public interface IResService {
	
	/**
	 * 修改平台资源信息
	 * 
	 * @param res
	 * 
	 * @throws SQLException
	 * 
	 * @throws IgdException
	 */
	void updateResourcesByResId(Resources res) throws SQLException, IgdException;
	
	/**
	 * 保存平台资源信息
	 * 
	 * @param res
	 * 
	 * @return
	 * 
	 * @throws SQLException
	 * 
	 * @throws IgdException
	 */
	Resources saveResources(Resources res) throws SQLException, IgdException;
	
	/**
	 * 删除平台资源
	 * 
	 * @param res
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	void delResources(Resources res) throws SQLException, IgdException;
	
	/**
	 * 获取平台所有资源信息
	 * 
	 * @param pageList
	 * 
	 * @return
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	List<Resources> getAllRes(PageList pageList) throws SQLException, IgdException;
	
	/**
	 * 获取资源信息数据
	 * 
	 * @param resId
	 * 
	 * @return
	 * 
	 * @throws IgdException 
	 * 
	 * @throws SQLException 
	 */
	Resources getResInfoByResId(String resId) throws SQLException, IgdException;
}
